package com.r2coding.music.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.r2coding.common.util.PageUtils;
import com.r2coding.music.entity.SongEntity;
import com.r2coding.music.vo.req.HandleSongListReqVo;
import com.r2coding.music.vo.req.QuerySongReqVo;
import com.r2coding.music.vo.resp.SongAndSongListRespVo;
import com.r2coding.music.vo.resp.SongRespVo;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;
/**
 * 歌曲
 *
 * @author 98k灬
 * @email hk666zx@163.com
 * @date 2022-05-04 20:46:11
 */
public interface SongService extends IService<SongEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageInfo<SongRespVo> getList(QuerySongReqVo reqVo);

    SongRespVo getSongById(Integer id);

    void deleteSongById(Integer id);

    void saveSong(SongEntity song);

    void batchSaveSong(MultipartFile file);

    List<SongRespVo> getSongsByCategoryId(Integer id);

    SongAndSongListRespVo getSongAndSongListBySongId(Integer id);

    void handleSongList(HandleSongListReqVo reqVo);
}

